# -*- coding: cp1252 -*-
import socket
        
TCP_IP = '192.168.11.1'
TCP_PORT = 9999
BUFFER_SIZE = 50

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((TCP_IP, TCP_PORT))
data=''
i=0
while i!=1:
    print "Ok"
    s.send("test")
    data = s.recv(BUFFER_SIZE)
    i+=1
s.send('fin')
print '\nFin de la connexion'
s.close()


